package com.sgcc.statistics.mapper;

import java.util.Date;
import java.util.List;
import com.sgcc.statistics.domain.CCons;
import org.apache.ibatis.annotations.Mapper;

/**
 * CConsMapper接口
 * 
 * @author sgcc
 * @date 2021-04-14
 */
@Mapper
public interface CConsMapper 
{
    /**
     * 查询CCons
     * 
     * @param consId CConsID
     * @return CCons
     */
    public CCons selectCConsById(Long consId);

    /**
     * 查询CCons列表
     * 
     * @param cCons CCons
     * @return CCons集合
     */
    public List<CCons> selectCConsList(CCons cCons);

    /**
     * 新增CCons
     * 
     * @param cCons CCons
     * @return 结果
     */
    public int insertCCons(CCons cCons);

    /**
     * 修改CCons
     * 
     * @param cCons CCons
     * @return 结果
     */
    public int updateCCons(CCons cCons);

    /**
     * 删除CCons
     * 
     * @param consId CConsID
     * @return 结果
     */
    public int deleteCConsById(Long consId);

    /**
     * 批量删除CCons
     * 
     * @param consIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteCConsByIds(Long[] consIds);

    CCons getHushuZb(String orgNo);

    CCons getCityHushuZb(String orgNo, String parentId);

    Integer selectCConsCount();

    List<CCons> selectCConsCountByCityList(List<String> orgNoList);
}
